Skip to main content

Agreements and State

A booking is comprised of two parts: the state and agreement.

The state of a booking contains information needed to exchange value and services (e.g. the state of the vehicle, messages, photos, etc).

The agreement defines how state can change and how the agreement itself can change.

Booking Agreement and State 1.excalidraw Booking and Agreement State General.excalidraw

The agreement may define how changes in one state lead to changes in another state. For example, an agreement may define that if the state of mileage is above a certain amount, the balances will change in order to deduct fees.